home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 July / Macworld (1999-07).dmg / Shareware World / Info / For Developers / Mops 3.4.sea / Mops source / Toolbox classes / serial < prev    next >
MacBinary  |  1995-08-24  |  4.1 KB  |  [TEXT/MSET]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: serial

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Aug 24 19:05:24 1995, modified Thu Aug 24 19:05:24 1995, creator 'MSET', type ASCII, 3594 bytes "serial" , at 0xe8a 381 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-4K) default (weak)
16% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MSET]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 73 65 72 69 61 6c | 00 00 00 00 00 00 00 00 |..serial|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 53 45 | 54 01 00 00 00 00 00 00 |.TEXTMSE|T.......|
|00000050| 00 00 00 00 00 0e 0a 00 | 00 01 7d ac 62 b6 34 ac |........|..}.b.4.|
|00000060| 62 b6 34 00 00 08 00 00 | 00 00 00 00 00 00 00 00 |b.4.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 4e c5 00 00 |........|....N...|
|00000080| 5c 20 73 65 72 69 61 6c | 20 2d 20 61 73 79 6e 63 |\ serial| - async|
|00000090| 20 73 65 72 69 61 6c 20 | 64 72 69 76 65 72 20 73 | serial |driver s|
|000000a0| 75 70 70 6f 72 74 0d 5c | 20 20 32 2f 30 34 2f 38 |upport.\| 2/04/8|
|000000b0| 35 20 20 63 62 64 20 56 | 65 72 73 69 6f 6e 20 31 |5 cbd V|ersion 1|
|000000c0| 0d 5c 20 20 39 2f 30 34 | 2f 38 36 20 20 63 64 6e |.\ 9/04|/86 cdn|
|000000d0| 20 45 6c 69 6d 69 6e 61 | 74 65 64 20 72 65 64 75 | Elimina|ted redu|
|000000e0| 6e 64 61 6e 74 20 72 65 | 61 64 6e 77 3a 20 26 20 |ndant re|adnw: & |
|000000f0| 77 72 69 74 65 6e 77 0d | 5c 20 20 39 2f 30 36 2f |writenw.|\ 9/06/|
|00000100| 38 36 20 20 63 64 6e 20 | 41 64 64 65 64 20 62 69 |86 cdn |Added bi|
|00000110| 2d 64 69 72 65 63 74 69 | 6f 6e 61 6c 20 70 6f 72 |-directi|onal por|
|00000120| 74 20 75 73 61 67 65 0d | 5c 09 09 09 09 41 75 74 |t usage.|\....Aut|
|00000130| 6f 6d 61 74 69 63 61 6c | 6c 79 20 73 65 6e 64 20 |omatical|ly send |
|00000140| 72 65 73 65 74 3a 20 69 | 6e 20 6f 70 65 6e 3a 0d |reset: i|n open:.|
|00000150| 5c 20 20 34 2f 31 39 2f | 38 39 09 72 66 6c 09 61 |\ 4/19/|89.rfl.a|
|00000160| 64 64 65 64 20 62 72 65 | 61 6b 3a 0d 5c 20 20 36 |dded bre|ak:.\ 6|
|00000170| 2f 31 33 2f 38 39 09 72 | 66 6c 20 72 65 71 75 69 |/13/89.r|fl requi|
|00000180| 72 65 73 20 69 6e 74 65 | 72 76 61 6c 20 66 6f 72 |res inte|rval for|
|00000190| 20 70 61 75 73 65 0d 5c | 20 20 33 2f 31 34 2f 39 | pause.\| 3/14/9|
|000001a0| 30 09 72 66 6c 09 61 64 | 64 65 64 20 62 75 66 66 |0.rfl.ad|ded buff|
|000001b0| 65 72 3a 0d 5c 20 20 38 | 2f 31 36 2f 39 30 09 72 |er:.\ 8|/16/90.r|
|000001c0| 66 6c 09 61 64 64 65 64 | 20 62 61 75 64 72 61 74 |fl.added| baudrat|
|000001d0| 65 3a 20 61 6e 64 20 58 | 4f 4e 3a 0d 0d 5c 20 4d |e: and X|ON:..\ M|
|000001e0| 61 79 20 39 33 09 6d 72 | 68 20 4d 6f 70 73 20 76 |ay 93.mr|h Mops v|
|000001f0| 65 72 73 69 6f 6e 2e 0d | 0d 6e 65 65 64 20 64 72 |ersion..|.need dr|
|00000200| 76 72 0d 0d 64 65 63 69 | 6d 61 6c 0d 0d 5c 20 64 |vr..deci|mal..\ d|
|00000210| 65 66 69 6e 65 20 73 65 | 72 69 61 6c 20 69 2f 6f |efine se|rial i/o|
|00000220| 20 70 6f 72 74 20 6f 62 | 6a 65 63 74 0d 0d 3a 63 | port ob|ject..:c|
|00000230| 6c 61 73 73 20 20 50 4f | 52 54 20 20 73 75 70 65 |lass PO|RT supe|
|00000240| 72 7b 20 50 42 44 72 76 | 72 20 7d 0d 72 65 63 6f |r{ PBDrv|r }.reco|
|00000250| 72 64 0d 7b 09 69 6e 74 | 09 09 74 68 65 50 6f 72 |rd.{.int|..thePor|
|00000260| 74 09 09 09 5c 20 20 30 | 3d 6d 6f 64 65 6d 2c 20 |t...\ 0|=modem, |
|00000270| 31 3d 70 72 69 6e 74 65 | 72 0d 09 69 6e 74 09 09 |1=printe|r..int..|
|00000280| 44 69 72 65 63 74 69 6f | 6e 09 09 5c 20 20 30 3d |Directio|n..\ 0=|
|00000290| 69 6e 70 75 74 2c 20 31 | 3d 6f 75 74 70 75 74 2c |input, 1|=output,|
|000002a0| 20 32 3d 62 6f 74 68 0d | 09 69 6e 74 09 09 43 6f | 2=both.|.int..Co|
|000002b0| 6e 66 69 67 09 09 09 5c | 20 62 69 74 73 2c 20 70 |nfig...\| bits, p|
|000002c0| 61 72 69 74 79 2c 20 73 | 70 65 65 64 0d 09 69 6e |arity, s|peed..in|
|000002d0| 74 09 09 69 6e 52 65 66 | 09 09 09 5c 20 69 6e 70 |t..inRef|...\ inp|
|000002e0| 75 74 20 49 4f 52 65 66 | 4e 75 6d 0d 09 69 6e 74 |ut IORef|Num..int|
|000002f0| 09 09 6f 75 74 52 65 66 | 09 09 09 5c 20 6f 75 74 |..outRef|...\ out|
|00000300| 70 75 74 20 49 4f 52 65 | 66 4e 75 6d 0d 7d 0d 0d |put IORe|fNum.}..|
|00000310| 3a 6d 20 49 4e 49 54 3a | 09 5c 20 28 20 70 6f 72 |:m INIT:|.\ ( por|
|00000320| 74 23 20 64 69 72 65 63 | 74 69 6f 6e 20 2d 2d 20 |t# direc|tion -- |
|00000330| 29 0d 09 70 75 74 3a 20 | 64 69 72 65 63 74 69 6f |)..put: |directio|
|00000340| 6e 20 20 20 70 75 74 3a | 20 74 68 65 50 6f 72 74 |n put:| thePort|
|00000350| 20 20 3b 6d 0d 0d 3a 6d | 20 53 45 54 43 4f 4e 46 | ;m..:m| SETCONF|
|00000360| 49 47 3a 09 09 5c 20 28 | 20 63 6f 6e 66 69 67 20 |IG:..\ (| config |
|00000370| 2d 2d 20 29 20 20 53 65 | 74 20 74 68 65 20 63 6f |-- ) Se|t the co|
|00000380| 6e 66 69 67 20 77 6f 72 | 64 20 64 69 72 65 63 74 |nfig wor|d direct|
|00000390| 6c 79 0d 09 70 75 74 3a | 20 63 6f 6e 66 69 67 20 |ly..put:| config |
|000003a0| 20 3b 6d 0d 0d 0d 3a 6d | 20 43 4f 4e 46 49 47 3a | ;m...:m| CONFIG:|
|000003b0| 20 20 7b 20 73 74 6f 70 | 20 64 61 74 61 20 70 61 | { stop| data pa|
|000003c0| 72 69 74 79 20 2d 2d 20 | 7d 0d 09 09 5c 20 53 65 |rity -- |}...\ Se|
|000003d0| 74 73 20 73 74 6f 70 2c | 20 64 61 74 61 20 62 69 |ts stop,| data bi|
|000003e0| 74 73 20 69 6e 20 74 68 | 65 20 63 6f 6e 66 69 67 |ts in th|e config|
|000003f0| 20 77 6f 72 64 0d 09 09 | 5c 20 73 74 6f 70 20 63 | word...|\ stop c|
|00000400| 61 6e 20 62 65 20 31 20 | 6f 72 20 32 0d 09 09 5c |an be 1 |or 2...\|
|00000410| 20 64 61 74 61 20 63 61 | 6e 20 62 65 20 37 20 6f | data ca|n be 7 o|
|00000420| 72 20 38 0d 09 09 5c 20 | 70 61 72 69 74 79 3a 20 |r 8...\ |parity: |
|00000430| 30 3d 6e 6f 6e 65 20 31 | 3d 6f 64 64 20 32 3d 65 |0=none 1|=odd 2=e|
|00000440| 76 65 6e 0d 0d 09 64 61 | 74 61 20 37 20 3d 0d 09 |ven...da|ta 7 =..|
|00000450| 49 46 20 24 20 34 30 30 | 20 20 45 4c 53 45 20 24 |IF $ 400| ELSE $|
|00000460| 20 43 30 30 20 20 54 48 | 45 4e 20 20 2d 3e 20 64 | C00 TH|EN -> d|
|00000470| 61 74 61 0d 09 73 74 6f | 70 20 31 20 3d 0d 09 49 |ata..sto|p 1 =..I|
|00000480| 46 20 24 20 34 30 30 30 | 20 45 4c 53 45 20 24 20 |F $ 4000| ELSE $ |
|00000490| 43 30 30 30 20 54 48 45 | 4e 20 20 2d 3e 20 73 74 |C000 THE|N -> st|
|000004a0| 6f 70 0d 09 70 61 72 69 | 74 79 0d 09 4e 49 46 09 |op..pari|ty..NIF.|
|000004b0| 09 24 20 32 30 30 30 0d | 09 45 4c 53 45 09 70 61 |.$ 2000.|.ELSE.pa|
|000004c0| 72 69 74 79 20 31 20 3d | 0d 09 09 09 49 46 20 20 |rity 1 =|....IF |
|000004d0| 20 20 24 20 31 30 30 30 | 0d 09 09 09 45 4c 53 45 | $ 1000|....ELSE|
|000004e0| 20 20 24 20 33 30 30 30 | 0d 09 09 09 54 48 45 4e | $ 3000|....THEN|
|000004f0| 0d 09 54 48 45 4e 20 20 | 2d 3e 20 70 61 72 69 74 |..THEN |-> parit|
|00000500| 79 0d 09 67 65 74 3a 20 | 63 6f 6e 66 69 67 20 20 |y..get: |config |
|00000510| 24 20 30 31 46 46 20 61 | 6e 64 20 20 64 61 74 61 |$ 01FF a|nd data|
|00000520| 20 6f 72 20 20 73 74 6f | 70 20 6f 72 20 20 70 61 | or sto|p or pa|
|00000530| 72 69 74 79 20 6f 72 0d | 09 70 75 74 3a 20 63 6f |rity or.|.put: co|
|00000540| 6e 66 69 67 20 20 3b 6d | 0d 0d 0d 3a 6d 20 42 41 |nfig ;m|...:m BA|
|00000550| 55 44 3a 09 5c 20 28 20 | 6e 20 2d 2d 20 29 20 20 |UD:.\ ( |n -- ) |
|00000560| 53 65 74 73 20 74 68 65 | 20 62 61 75 64 20 72 61 |Sets the| baud ra|
|00000570| 74 65 20 66 6f 72 20 74 | 68 65 20 70 6f 72 74 0d |te for t|he port.|
|00000580| 09 09 09 5c 09 09 09 2d | 20 33 30 30 2c 36 30 30 |...\...-| 300,600|
|00000590| 2c 31 32 30 30 2c 32 34 | 30 30 2c 20 65 74 63 2e |,1200,24|00, etc.|
|000005a0| 0d 09 64 75 70 20 33 30 | 30 20 3d 0d 09 49 46 20 |..dup 30|0 =..IF |
|000005b0| 20 20 20 38 30 20 2b 0d | 09 45 4c 53 45 20 20 33 | 80 +.|.ELSE 3|
|000005c0| 30 30 20 2f 20 20 33 38 | 30 20 73 77 61 70 20 2f |00 / 38|0 swap /|
|000005d0| 20 20 31 2d 0d 09 54 48 | 45 4e 20 20 67 65 74 3a | 1-..TH|EN get:|
|000005e0| 20 63 6f 6e 66 69 67 20 | 20 24 20 46 45 30 30 20 | config | $ FE00 |
|000005f0| 61 6e 64 20 20 6f 72 20 | 20 70 75 74 3a 20 63 6f |and or | put: co|
|00000600| 6e 66 69 67 20 20 3b 6d | 0d 0d 0d 3a 6d 20 43 4f |nfig ;m|...:m CO|
|00000610| 4e 54 52 4f 4c 3a 09 09 | 5c 20 44 6f 65 73 20 50 |NTROL:..|\ Does P|
|00000620| 42 43 6f 6e 74 72 6f 6c | 20 63 61 6c 6c 0d 09 67 |BControl| call..g|
|00000630| 65 74 3a 20 64 69 72 65 | 63 74 69 6f 6e 20 20 64 |et: dire|ction d|
|00000640| 75 70 20 30 3d 20 20 73 | 77 61 70 20 32 20 3d 20 |up 0= s|wap 2 = |
|00000650| 6f 72 0d 09 49 46 09 67 | 65 74 3a 20 69 6e 52 65 |or..IF.g|et: inRe|
|00000660| 66 20 20 70 75 74 3a 20 | 49 4f 52 65 66 4e 75 6d |f put: |IORefNum|
|00000670| 20 20 61 64 64 72 3a 20 | 68 65 61 64 65 72 20 20 | addr: |header |
|00000680| 63 61 6c 6c 20 50 42 43 | 6f 6e 74 72 6f 6c 53 79 |call PBC|ontrolSy|
|00000690| 6e 63 20 20 54 48 45 4e | 0d 09 67 65 74 3a 20 64 |nc THEN|..get: d|
|000006a0| 69 72 65 63 74 69 6f 6e | 0d 09 49 46 09 67 65 74 |irection|..IF.get|
|000006b0| 3a 20 6f 75 74 52 65 66 | 20 70 75 74 3a 20 49 4f |: outRef| put: IO|
|000006c0| 52 65 66 4e 75 6d 20 20 | 61 64 64 72 3a 20 68 65 |RefNum |addr: he|
|000006d0| 61 64 65 72 20 20 63 61 | 6c 6c 20 50 42 43 6f 6e |ader ca|ll PBCon|
|000006e0| 74 72 6f 6c 53 79 6e 63 | 20 20 54 48 45 4e 0d 3b |trolSync| THEN.;|
|000006f0| 6d 0d 0d 0d 3a 6d 20 52 | 45 53 45 54 3a 09 09 5c |m...:m R|ESET:..\|
|00000700| 20 53 65 74 73 20 74 68 | 65 20 63 6f 6d 6d 75 6e | Sets th|e commun|
|00000710| 69 63 61 74 69 6f 6e 20 | 70 61 72 6d 73 20 66 72 |ication |parms fr|
|00000720| 6f 6d 20 74 68 65 20 63 | 6f 6e 66 69 67 75 72 61 |om the c|onfigura|
|00000730| 74 69 6f 6e 20 77 6f 72 | 64 0d 09 38 20 70 75 74 |tion wor|d..8 put|
|00000740| 3a 20 63 73 43 6f 64 65 | 20 20 67 65 74 3a 20 63 |: csCode| get: c|
|00000750| 6f 6e 66 69 67 20 20 70 | 75 74 3a 20 63 73 70 31 |onfig p|ut: csp1|
|00000760| 20 20 30 20 70 75 74 3a | 20 49 4f 43 6f 6d 70 0d | 0 put:| IOComp.|
|00000770| 09 63 6f 6e 74 72 6f 6c | 3a 20 73 65 6c 66 20 20 |.control|: self |
|00000780| 3b 6d 0d 0d 0d 3a 6d 20 | 4f 50 4e 3a 09 09 5c 20 |;m...:m |OPN:..\ |
|00000790| 28 20 61 64 64 72 20 6c | 65 6e 20 2d 2d 20 52 65 |( addr l|en -- Re|
|000007a0| 66 4e 75 6d 20 29 0d 09 | 6e 61 6d 65 3a 20 73 75 |fNum )..|name: su|
|000007b0| 70 65 72 20 20 6f 70 65 | 6e 3a 20 73 75 70 65 72 |per ope|n: super|
|000007c0| 20 64 72 6f 70 20 20 67 | 65 74 3a 20 49 4f 52 65 | drop g|et: IORe|
|000007d0| 66 4e 75 6d 20 20 3b 6d | 0d 0d 0d 3a 6d 20 4f 50 |fNum ;m|...:m OP|
|000007e0| 45 4e 3a 09 5c 20 28 20 | 2d 2d 20 29 20 20 4f 70 |EN:.\ ( |-- ) Op|
|000007f0| 65 6e 73 20 74 68 65 20 | 72 65 61 64 20 61 6e 64 |ens the |read and|
|00000800| 20 77 72 69 74 65 20 64 | 72 69 76 65 72 73 20 66 | write d|rivers f|
|00000810| 6f 72 20 61 20 70 6f 72 | 74 0d 09 67 65 74 3a 20 |or a por|t..get: |
|00000820| 74 68 65 50 6f 72 74 0d | 09 4e 49 46 09 67 65 74 |thePort.|.NIF.get|
|00000830| 3a 20 64 69 72 65 63 74 | 69 6f 6e 20 20 64 75 70 |: direct|ion dup|
|00000840| 20 30 3d 20 20 73 77 61 | 70 20 32 20 3d 20 20 6f | 0= swa|p 2 = o|
|00000850| 72 0d 09 09 49 46 20 20 | 22 20 2e 41 49 6e 22 20 |r...IF |" .AIn" |
|00000860| 20 6f 70 6e 3a 20 73 65 | 6c 66 20 70 75 74 3a 20 | opn: se|lf put: |
|00000870| 69 6e 52 65 66 20 20 54 | 48 45 4e 0d 09 09 67 65 |inRef T|HEN...ge|
|00000880| 74 3a 20 64 69 72 65 63 | 74 69 6f 6e 0d 09 09 49 |t: direc|tion...I|
|00000890| 46 20 20 22 20 2e 41 4f | 75 74 22 20 6f 70 6e 3a |F " .AO|ut" opn:|
|000008a0| 20 73 65 6c 66 20 70 75 | 74 3a 20 6f 75 74 52 65 | self pu|t: outRe|
|000008b0| 66 20 20 54 48 45 4e 0d | 09 45 4c 53 45 20 20 67 |f THEN.|.ELSE g|
|000008c0| 65 74 3a 20 64 69 72 65 | 63 74 69 6f 6e 20 20 64 |et: dire|ction d|
|000008d0| 75 70 20 30 3d 20 20 73 | 77 61 70 20 32 20 3d 20 |up 0= s|wap 2 = |
|000008e0| 6f 72 0d 09 09 49 46 20 | 20 22 20 2e 42 49 6e 22 |or...IF | " .BIn"|
|000008f0| 20 20 6f 70 6e 3a 20 73 | 65 6c 66 20 70 75 74 3a | opn: s|elf put:|
|00000900| 20 69 6e 52 65 66 20 20 | 54 48 45 4e 0d 09 09 67 | inRef |THEN...g|
|00000910| 65 74 3a 20 64 69 72 65 | 63 74 69 6f 6e 0d 09 09 |et: dire|ction...|
|00000920| 49 46 20 20 22 20 2e 42 | 4f 75 74 22 20 6f 70 6e |IF " .B|Out" opn|
|00000930| 3a 20 73 65 6c 66 20 70 | 75 74 3a 20 6f 75 74 52 |: self p|ut: outR|
|00000940| 65 66 20 54 48 45 4e 0d | 09 54 48 45 4e 0d 09 67 |ef THEN.|.THEN..g|
|00000950| 65 74 3a 20 49 4f 52 65 | 73 75 6c 74 20 20 72 65 |et: IORe|sult re|
|00000960| 73 65 74 3a 20 73 65 6c | 66 20 20 3b 6d 0d 0d 0d |set: sel|f ;m...|
|00000970| 3a 6d 20 52 45 41 44 3a | 09 5c 20 28 20 61 64 64 |:m READ:|.\ ( add|
|00000980| 72 20 6c 65 6e 20 2d 2d | 20 66 63 6f 64 65 20 29 |r len --| fcode )|
|00000990| 20 20 72 65 63 65 69 76 | 65 20 4c 45 4e 20 62 79 | receiv|e LEN by|
|000009a0| 74 65 73 20 6f 6e 20 74 | 68 65 20 73 65 72 69 61 |tes on t|he seria|
|000009b0| 6c 20 70 6f 72 74 0d 09 | 30 20 70 75 74 3a 20 49 |l port..|0 put: I|
|000009c0| 4f 43 6f 6d 70 20 20 67 | 65 74 3a 20 69 6e 52 65 |OComp g|et: inRe|
|000009d0| 66 20 20 70 75 74 3a 20 | 49 4f 52 65 66 4e 75 6d |f put: |IORefNum|
|000009e0| 20 20 72 65 61 64 3a 20 | 73 75 70 65 72 20 20 3b | read: |super ;|
|000009f0| 6d 0d 0d 3a 6d 20 57 52 | 49 54 45 3a 09 5c 20 28 |m..:m WR|ITE:.\ (|
|00000a00| 20 61 64 64 72 20 6c 65 | 6e 20 2d 2d 20 66 63 6f | addr le|n -- fco|
|00000a10| 64 65 20 29 20 20 73 65 | 6e 64 20 4c 45 4e 20 62 |de ) se|nd LEN b|
|00000a20| 79 74 65 73 20 6f 6e 20 | 74 68 65 20 73 65 72 69 |ytes on |the seri|
|00000a30| 61 6c 20 70 6f 72 74 0d | 09 30 20 70 75 74 3a 20 |al port.|.0 put: |
|00000a40| 49 4f 43 6f 6d 70 20 20 | 67 65 74 3a 20 6f 75 74 |IOComp |get: out|
|00000a50| 52 65 66 20 20 70 75 74 | 3a 20 49 4f 52 65 66 4e |Ref put|: IORefN|
|00000a60| 75 6d 20 20 77 72 69 74 | 65 3a 20 73 75 70 65 72 |um writ|e: super|
|00000a70| 20 20 3b 6d 0d 0d 3a 6d | 20 52 45 41 44 4e 57 3a | ;m..:m| READNW:|
|00000a80| 09 5c 20 28 20 63 66 61 | 3a 70 72 6f 63 20 61 64 |.\ ( cfa|:proc ad|
|00000a90| 64 72 20 6c 65 6e 20 29 | 20 20 72 65 63 65 69 76 |dr len )| receiv|
|00000aa0| 65 20 4c 45 4e 20 62 79 | 74 65 73 20 61 73 79 6e |e LEN by|tes asyn|
|00000ab0| 63 68 72 6f 6e 6f 75 73 | 6c 79 20 6f 6e 20 74 68 |chronous|ly on th|
|00000ac0| 65 20 70 6f 72 74 0d 09 | 67 65 74 3a 20 69 6e 52 |e port..|get: inR|
|00000ad0| 65 66 20 20 70 75 74 3a | 20 49 4f 52 65 66 4e 75 |ef put:| IORefNu|
|00000ae0| 6d 20 20 72 65 61 64 6e | 77 3a 20 73 75 70 65 72 |m readn|w: super|
|00000af0| 20 20 3b 6d 0d 0d 3a 6d | 20 57 52 49 54 45 4e 57 | ;m..:m| WRITENW|
|00000b00| 3a 09 5c 20 28 20 63 66 | 61 3a 70 72 6f 63 20 61 |:.\ ( cf|a:proc a|
|00000b10| 64 64 72 20 6c 65 6e 20 | 29 20 20 73 65 6e 64 20 |ddr len |) send |
|00000b20| 4c 45 4e 20 62 79 74 65 | 73 20 61 73 79 6e 63 68 |LEN byte|s asynch|
|00000b30| 72 6f 6e 6f 75 73 6c 79 | 20 6f 6e 20 74 68 65 20 |ronously| on the |
|00000b40| 70 6f 72 74 0d 09 67 65 | 74 3a 20 6f 75 74 52 65 |port..ge|t: outRe|
|00000b50| 66 20 20 70 75 74 3a 20 | 49 4f 52 65 66 4e 75 6d |f put: |IORefNum|
|00000b60| 20 20 77 72 69 74 65 6e | 77 3a 20 73 75 70 65 72 | writen|w: super|
|00000b70| 20 20 3b 6d 0d 0d 3a 6d | 20 47 45 54 3a 09 09 5c | ;m..:m| GET:..\|
|00000b80| 20 28 20 2d 2d 20 63 68 | 61 72 20 29 20 20 67 65 | ( -- ch|ar ) ge|
|00000b90| 74 20 61 20 73 69 6e 67 | 6c 65 20 63 68 61 72 61 |t a sing|le chara|
|00000ba0| 63 74 65 72 20 66 72 6f | 6d 20 70 6f 72 74 0d 09 |cter fro|m port..|
|00000bb0| 70 61 64 20 31 20 20 72 | 65 61 64 3a 20 73 65 6c |pad 1 r|ead: sel|
|00000bc0| 66 20 64 72 6f 70 20 20 | 70 61 64 20 63 40 20 20 |f drop |pad c@ |
|00000bd0| 3b 6d 0d 0d 3a 6d 20 50 | 55 54 3a 09 09 5c 20 28 |;m..:m P|UT:..\ (|
|00000be0| 20 63 68 61 72 20 2d 2d | 20 29 20 20 73 65 6e 64 | char --| ) send|
|00000bf0| 20 61 20 73 69 6e 67 6c | 65 20 63 68 61 72 20 74 | a singl|e char t|
|00000c00| 6f 20 70 6f 72 74 0d 09 | 70 61 64 20 63 21 20 20 |o port..|pad c! |
|00000c10| 70 61 64 20 31 20 77 72 | 69 74 65 3a 20 73 65 6c |pad 1 wr|ite: sel|
|00000c20| 66 20 20 64 72 6f 70 20 | 20 3b 6d 0d 0d 3a 6d 20 |f drop | ;m..:m |
|00000c30| 43 54 53 3a 09 09 5c 20 | 28 20 62 6f 6f 6c 20 2d |CTS:..\ |( bool -|
|00000c40| 2d 20 66 63 6f 64 65 20 | 29 20 20 74 75 72 6e 20 |- fcode |) turn |
|00000c50| 43 54 53 20 68 61 6e 64 | 73 68 61 6b 69 6e 67 20 |CTS hand|shaking |
|00000c60| 6f 6e 20 6f 72 20 6f 66 | 66 20 76 69 61 20 43 4f |on or of|f via CO|
|00000c70| 4e 54 52 4f 4c 20 63 61 | 6c 6c 0d 09 61 64 64 72 |NTROL ca|ll..addr|
|00000c80| 3a 20 63 73 70 31 20 20 | 31 30 20 65 72 61 73 65 |: csp1 |10 erase|
|00000c90| 20 20 70 75 74 3a 20 63 | 73 70 31 20 20 31 30 20 | put: c|sp1 10 |
|00000ca0| 70 75 74 3a 20 63 73 43 | 6f 64 65 20 20 30 20 70 |put: csC|ode 0 p|
|00000cb0| 75 74 3a 20 49 4f 43 6f | 6d 70 0d 09 63 6f 6e 74 |ut: IOCo|mp..cont|
|00000cc0| 72 6f 6c 3a 20 73 65 6c | 66 20 20 67 65 74 3a 20 |rol: sel|f get: |
|00000cd0| 49 4f 52 65 73 75 6c 74 | 20 20 3b 6d 0d 0d 0d 3a |IOResult| ;m...:|
|00000ce0| 6d 20 58 4f 4e 3a 20 28 | 20 2d 2d 20 29 0d 09 31 |m XON: (| -- )..1|
|00000cf0| 30 20 70 75 74 3a 20 63 | 73 63 6f 64 65 20 24 20 |0 put: c|scode $ |
|00000d00| 30 31 30 30 31 31 31 33 | 20 61 64 64 72 3a 20 63 |01001113| addr: c|
|00000d10| 73 50 31 20 21 20 63 6f | 6e 74 72 6f 6c 3a 20 73 |sP1 ! co|ntrol: s|
|00000d20| 65 6c 66 20 20 3b 6d 0d | 0d 3a 6d 20 42 52 45 41 |elf ;m.|.:m BREA|
|00000d30| 4b 3a 09 09 5c 20 73 65 | 6e 64 73 20 6f 75 74 20 |K:..\ se|nds out |
|00000d40| 61 20 31 30 30 20 6d 73 | 65 63 20 62 72 65 61 6b |a 100 ms|ec break|
|00000d50| 0d 09 31 32 20 70 75 74 | 3a 20 63 73 43 6f 64 65 |..12 put|: csCode|
|00000d60| 20 63 6f 6e 74 72 6f 6c | 3a 20 73 65 6c 66 20 20 | control|: self |
|00000d70| 36 20 70 61 75 73 65 20 | 20 31 31 20 70 75 74 3a |6 pause | 11 put:|
|00000d80| 20 63 73 43 6f 64 65 20 | 20 63 6f 6e 74 72 6f 6c | csCode | control|
|00000d90| 3a 20 73 65 6c 66 20 20 | 3b 6d 0d 0d 3a 6d 20 42 |: self |;m..:m B|
|00000da0| 55 46 46 45 52 3a 20 09 | 5c 20 28 20 61 64 64 72 |UFFER: .|\ ( addr|
|00000db0| 20 6c 65 6e 20 2d 2d 20 | 29 20 69 6e 63 72 65 61 | len -- |) increa|
|00000dc0| 73 65 20 69 6e 74 65 72 | 6e 61 6c 20 62 75 66 66 |se inter|nal buff|
|00000dd0| 65 72 20 73 69 7a 65 20 | 66 72 6f 6d 20 64 65 66 |er size |from def|
|00000de0| 61 75 6c 74 0d 09 09 09 | 5c 09 09 09 09 09 6f 66 |ault....|\.....of|
|00000df0| 20 36 34 20 62 79 74 65 | 73 0d 09 61 64 64 72 3a | 64 byte|s..addr:|
|00000e00| 20 49 4f 42 75 66 66 65 | 72 20 77 21 20 20 61 64 | IOBuffe|r w! ad|
|00000e10| 64 72 3a 20 63 73 50 31 | 20 21 20 20 39 20 70 75 |dr: csP1| ! 9 pu|
|00000e20| 74 3a 20 63 73 63 6f 64 | 65 0d 09 63 6f 6e 74 72 |t: cscod|e..contr|
|00000e30| 6f 6c 3a 20 73 65 6c 66 | 20 20 3b 6d 0d 0d 0d 3a |ol: self| ;m...:|
|00000e40| 6d 20 42 41 55 44 52 41 | 54 45 3a 20 28 20 6e 20 |m BAUDRA|TE: ( n |
|00000e50| 2d 2d 29 0d 09 31 33 20 | 70 75 74 3a 20 63 73 63 |--)..13 |put: csc|
|00000e60| 6f 64 65 20 20 70 75 74 | 3a 20 63 73 50 31 20 20 |ode put|: csP1 |
|00000e70| 63 6f 6e 74 72 6f 6c 3a | 20 73 65 6c 66 20 20 3b |control:| self ;|
|00000e80| 6d 0d 0d 3b 63 6c 61 73 | 73 0d 00 00 00 00 00 00 |m..;clas|s.......|
|00000e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 01 00 00 00 01 42 | 00 00 00 42 00 00 00 3b |.......B|...B...;|
|00000f10| 00 00 00 29 09 66 72 65 | 65 20 77 69 6c 6c 02 00 |...).fre|e will..|
|00000f20| 00 00 54 45 58 54 4e 49 | 53 49 01 02 00 c8 00 68 |..TEXTNI|SI.....h|
|00000f30| 06 73 65 72 69 61 6c 73 | 02 00 00 00 50 61 72 74 |.serials|....Part|
|00000f40| 53 49 54 21 00 00 00 00 | 00 00 00 00 00 01 82 5a |SIT!....|.......Z|
|00000f50| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 b3 66 c2 7a 00 00 | 00 00 00 00 01 7d 00 00 |...f.z..|.....}..|
|00000f80| 00 00 00 00 10 00 00 00 | 00 29 0a 66 72 6f 6d 20 |........|.).from |
|00000f90| 42 65 6e 20 48 00 02 00 | 00 00 54 45 58 54 4e 49 |Ben H...|..TEXTNI|
|00000fa0| 53 49 01 02 01 47 00 e7 | 00 00 00 00 00 35 00 00 |SI...G..|.....5..|
|00000fb0| 00 00 12 77 00 00 14 00 | 00 00 00 00 08 78 00 00 |...w....|.....x..|
|00000fc0| 0a 00 a6 3b f7 03 a6 3b | f7 03 00 00 00 00 00 00 |...;...;|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| d4 67 00 0a 00 00 00 00 | 00 00 00 00 d4 71 00 05 |.g......|.....q..|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 0c 00 00 00 |........|........|
|00001000| 00 00 00 3e 00 00 00 00 | 00 00 00 00 00 00 00 00 |...>....|........|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 06 56 |........|.......V|
|00001030| 00 00 06 56 00 00 00 00 | 00 00 00 00 00 00 00 00 |...V....|........|
|00001040| 00 00 00 00 01 00 00 00 | 01 42 00 00 00 42 00 00 |........|.B...B..|
|00001050| 00 3b 00 fd b0 28 1b ea | 00 00 00 1c 00 32 00 00 |.;...(..|.....2..|
|00001060| 4d 49 46 4f 00 00 00 0a | 00 80 00 00 00 00 00 00 |MIFO....|........|
|00001070| 00 fd b9 6c 08 4d 69 73 | 63 49 6e 66 6f 00 00 00 |...l.Mis|cInfo...|
+--------+-------------------------+-------------------------+--------+--------+